package cn.edu.scau.dropship.ServiceImpl;

import cn.edu.scau.dropship.entity.Save_goods;
import cn.edu.scau.dropship.entity.Save_goodsExample;
import cn.edu.scau.dropship.entity.Save_goodsKey;
import cn.edu.scau.dropship.mapper.Save_goodsMapper;
import cn.edu.scau.dropship.service.SaveGoodsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SaveGoodsServiceImpl implements SaveGoodsService {
    @Autowired
    private Save_goodsMapper save_goodsMapper;

    @Override
    public long countByExample(Save_goodsExample example) {
        return save_goodsMapper.countByExample(example);
    }

    @Override
    public int deleteByExample(Save_goodsExample example) {
        return save_goodsMapper.deleteByExample(example);
    }

    @Override
    public int deleteByPrimaryKey(Save_goodsKey key) {
        return save_goodsMapper.deleteByPrimaryKey(key);
    }

    @Override
    public int insert(Save_goods record) {
        return save_goodsMapper.insert(record);
    }

    @Override
    public int insertSelective(Save_goods record) {
        return save_goodsMapper.insertSelective(record);
    }

    @Override
    public List<Save_goods> selectByExample(Save_goodsExample example) {
        return save_goodsMapper.selectByExample(example);
    }

    @Override
    public int updateByExampleSelective(Save_goods record, Save_goodsExample example) {
        return save_goodsMapper.updateByExampleSelective(record, example);
    }

    @Override
    public int updateByExample(Save_goods record, Save_goodsExample example) {
        return save_goodsMapper.updateByExample(record, example);
    }

    public Save_goods selectByPrimaryKey(Save_goodsKey key){
        return save_goodsMapper.selectByPrimaryKey(key);
    }

    public int updateByPrimaryKey(Save_goods record){
        return save_goodsMapper.updateByPrimaryKey(record);
    }

}
